package com.cloudptt.wp.ui.message.adapter;

public class MulSelectedIndex implements Comparable<MulSelectedIndex>{
    private int index = 0;
    public MulSelectedIndex(int index)
    {
        this.index = index;
    }
    public boolean isSameOne(int index)
    {
        if(this.index == index)
        {
            return true;
        }
        return false;
    }
    @Override
    public int compareTo(MulSelectedIndex o) {
        return this.index - o.index;
    }
    public int getIndex() {
        return index;
    }
    public String toString()
    {
        StringBuffer strBuf = new StringBuffer("MulSelectedIndex ");
        strBuf.append("index = ").append(index).append(".");

        return strBuf.toString();
    }
}
